package com.house365.core.sop.weixin;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.house365.core.sop.Constants;
import com.tencent.mm.sdk.openapi.IWXAPI;
import com.tencent.mm.sdk.openapi.WXAPIFactory;

/**
 * 注册微信
 * 
 * @author Vincent Chow
 */
public class WEIXINAppRegister extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		final IWXAPI api = WXAPIFactory.createWXAPI(context, null);

		// 注册微信
		api.registerApp(Constants.WEIXIN_APP_ID);
	}
}
